<%--
 *  File:    BookSetOrg.jsp
 *  @Author: Jianni 
 *  Date:    2002/01/28
 *
 *  Copyright (C) 2000 - 2002 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>

<% //--------------------------------------  setting logger --%>
<%
  	Category cat = Category.getInstance("jsp.BookSetOrg");  
%>

<%
  	String strModuleName = "SPM";
  	String privilegeCode = "40104";
%>



<%//--------------------------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>



<html>
<head>
<title>BookSetOrg</title>
<PageFlow:CheckPageFlow pageName="booksetorg"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../css/<%= strLanguageCode %>/main.css" type="text/css">

<% //--------------------------------------  output variant from pageflow --%>
<%
  	Vector booksetOrg = (Vector)pageContext.getAttribute("booksetorginfo");
  	if(booksetOrg == null)
  	{
    	booksetOrg = new Vector();
  	}
  	cat.debug("The booksetOrg is :" + booksetOrg);
%>
</head>
<body>
	
	<table width="100%" cellspacing="0" border="0" cellpadding="0">
  	<tr> 
    	<td> 
      		<table width="100%" cellspacing="0" cellpadding="0">
        	<tr> 
          		<td colspan="2" class="summary_top"></td>
        	</tr>
        	<tr> 
          		<td colspan="2"><img src="../../images/<%= strLanguageCode %>/quote.gif" width="16" height="11"> 
            		<%= label.getLabelName("L_UseOrg") + label.getLabelName("L_Colon")%></td>
        	</tr>
      		</table>
      		
      		<table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
        	<tr class="deepblue-left"> 
          		<td class="title_center" width="80"><%= label.getLabelName("L_OrgCode") %></td>
          		<td class="title_center"><%= label.getLabelName("L_OrgName") %></td>
          		<td class="title_center"><%= label.getLabelName("L_ShortName") %></td>
          		<td class="title_center" width="100"><%= label.getLabelName("L_BusinessArea") %></td>
          		<td class="title_center" width="40"><%= label.getLabelName("L_Properties") %></td>
        	</tr>
        	
        	<%
            	int i = 0;
            	String strClassType = new String("");   
          	%>
          	<logic:iterate id="ps" collection="<%= booksetOrg %>">                      
          	<%
            	HashMap psMap = (HashMap)pageContext.getAttribute("ps"); 
            	String strIsChecked = new String("");
            	if(i%2 == 1)
            	{
              		strClassType = "td-listrom";
            	}else{                    
              		strClassType = "none";
            	}
            	i++;     
           	%>
          	<tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'"  class="<%=JspHelper.filterNull( strClassType )%>"> 
            	<td><a href="../ogm/OrgInfo.jsp?<%= OvalTools.randomURL() %>&orgid=<%=JspHelper.filterNull( psMap.get("orgid") )%>&languagecode=<%= strLanguageCode %>" target="content">&nbsp;<%=JspHelper.filterNull( psMap.get("orgcode") )%></a></td>
            	<td>&nbsp;<%=JspHelper.filterNull( psMap.get("orgname") )%></td>
            	<td>&nbsp;<%=JspHelper.filterNull( psMap.get("shortname") )%></td>
            	<td>&nbsp;<%=JspHelper.filterNull( psMap.get("areaname") )%></td>
            	<td>&nbsp;<%=JspHelper.filterNull( psMap.get("corptypename") )%></td>            
          	</tr>
          	</logic:iterate>                   
      		</table>
    	</td>
  	</tr>
  	<tr> 
    	<td class="summary_top"></td>
  	</tr>
	</table>
</body>
</html>


